﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="MakeConsultation.aspx.cs" Inherits="Consultation_MakeConsultation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">
        function alertOK() {
            alert("咨询已被记录！");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        咨询</h2>
    <fieldset class="ConsultationInfo">
        <legend>咨询</legend>
        <ul class="formul">
            <li><span class="formtitle">联系人</span><asp:TextBox ID="Customer" runat="server"></asp:TextBox></li>
            <li><span class="formtitle">来源电话</span><asp:TextBox ID="Mobile" runat="server"></asp:TextBox></li>
            <li><span class="formtitle">来源QQ</span><asp:TextBox ID="QQ" runat="server"></asp:TextBox></li>
            <li><span class="formtitle">咨询项目</span><asp:DropDownList ID="DelegateType" runat="server" 
                    DataSourceID="SqlDataSource1" DataTextField="DelegateName" 
                    DataValueField="DelegateType">
                </asp:DropDownList>
            </li>
            <li>
                <span class="formtitle">备注</span><asp:TextBox ID="ConsultationRemark" runat="server" Width="600px"></asp:TextBox>
            </li>
        </ul>
    <asp:Button ID="btnSave" runat="server" Text="记录咨询" onclick="btnSave_Click" />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>" 
            SelectCommand="SELECT * FROM [Delegate]"></asp:SqlDataSource>
    </fieldset>
    </asp:Content>
